package com.xintonghua.hongyi.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 作者：wanxianyi
 * 时间：2018/1/10.
 * 包名：com.xintonghua.hongyi.bean
 */

public class ShareBean implements Parcelable {
    private String name;
    private String phone;
    private float score;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public float getScore() {
        return score;
    }

    public void setScore(float score) {
        this.score = score;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
        dest.writeString(this.phone);
        dest.writeFloat(this.score);
    }

    public ShareBean() {
    }

    protected ShareBean(Parcel in) {
        this.name = in.readString();
        this.phone = in.readString();
        this.score = in.readFloat();
    }

    public static final Parcelable.Creator<ShareBean> CREATOR = new Parcelable.Creator<ShareBean>() {
        @Override
        public ShareBean createFromParcel(Parcel source) {
            return new ShareBean(source);
        }

        @Override
        public ShareBean[] newArray(int size) {
            return new ShareBean[size];
        }
    };
}
